﻿<?php 
session_start();	
 ?>

<body onLoad="block()">
<div class="header">
  <div class="headertop">
    <div id="headertop1"> 
    <img  class="imglogo" src="images/Black-Music-Banner.jpg" />
      <form action="search.php" method="post">
      <div class="f-search">
      <input id="boradius" type="text" onClick="hiden()" onBlur="block()" name="txt" />
      <select class="select-search" name="tim">
            <option>BÀI HÁT</option>
            <option>ALBUM</option>
            <option>VIDEO</option>
            <option>NGHỆ SĨ</option>
      </select>
      <input class="search-icons" type="submit" value=" " name="sub"/>
      </div>
      </form>
     
      <?php
	  	if(! isset($_SESSION["login"]))
		{
	  ?>
      <div class="floatright"> <a  class="dndk" href="../form/form.php" target="_blank">Đăng nhập</a> &nbsp; / &nbsp; <a target="_blank" class="dndk" href="../form/form.php#toregister">Đăng ký </a> </div>
      <?php 
		}
	  	else 
		{
		?>  
          <div class="floatright">Xin chào <a  class="dndk" href="../form/form.php"> <?=$_SESSION["login"]?></a>
          	<form action="../Form/logout.php" method="post"><input type="submit" value="thoát"/> </form>
           </div>
       <?php 
        } 
       ?>
    </div>
  </div>
  <div class="menu">
    <div class="menu1">
      <div id="iconh"><a href="home.php"><img src="images/house.png" /></a></div>
      <ul class="menu1ul">
        <li class="block">
          <div class="b1"><a href="album.php" target="_self">Album</a></div>
        </li>
      </ul>
      <ul class="menu1ul">
        <li class="block">
          <div class="b1"><a href="video.php" target="_self">Video</a></div>
        </li>
      </ul>
      <ul class="menu1ul">
        <li class="block">
          <div class="b1"><a href="nghesi.php" target="_self">Nghệ sĩ</a></div>
        </li>
      </ul>
      <ul class="menu1ul">
        <li class="block">
          <div class="b1"><a href="#">Playlist</a></div>
        </li>
      </ul>
      <ul class="menu1ul">
        <li class="block">
          <div class="b1"><a href="user.php" target="_self"><?=$_SESSION["login"]?></a></div>
        </li>
      </ul>
    </div>
  </div>
</div>
